package com.tlw.practice.tlw.dao;

import com.tlw.practice.tlw.entity.LeaveEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * @program: tlw
 * @description:
 * @author: Genmer
 * @create: 2020-12-02 22:10
 **/
@Repository
public interface LeaveDao extends JpaRepository<LeaveEntity, String>, JpaSpecificationExecutor<LeaveEntity>{
    LeaveEntity findOneById(String id);

    LeaveEntity save(LeaveEntity leaveEntity);
}
